﻿#include "pch.h"
#include "MainDialog.h"

IMPLEMENT_DYNAMIC(CMainPropertySheet, CBCGPPropertySheet)

CMainPropertySheet::CMainPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	: CBCGPPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	// 添加属性页
	AddPage(&m_pageDialog1);
	AddPage(&m_pageColorDialog);

	// 设置属性表样式为 Outlook 样式 (左侧导航列表)
	// 这个标志是关键，它告诉 BCG 以列表形式显示属性页标题
	m_bLook = LookOutlookBar; // 或者 LookTasksPane
}

CMainPropertySheet::CMainPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	: CBCGPPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
	// 添加属性页
	AddPage(&m_pageDialog1);
	AddPage(&m_pageColorDialog);

	// 设置属性表样式为 Outlook 样式
	m_bLook = LookOutlookBar; // 或者 LookTasksPane
}

CMainPropertySheet::~CMainPropertySheet()
{
}

BEGIN_MESSAGE_MAP(CMainPropertySheet, CBCGPPropertySheet)
END_MESSAGE_MAP()